package com.example.springbootdemo.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 类描述：
 * Created by apk2sf on 2017/12/27.
 * email: apk2sf@163.com
 * QQ：337081267
 */
@Component
@ConfigurationProperties(prefix = "meconfiginfo")
public class MeConfigInfo {
    private String name;
    private Integer age;
    private Integer width;

    @Override
    public String toString() {
        return "MeConfigInfo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", width=" + width +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }
}